package com.ruoyi.hospital.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 处方记录对象 prescription
 * 
 * @author qichi
 * @date 2023-07-05
 */
public class Prescription extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 处方id */
    private Long id;

    /** 租户id */
    @Excel(name = "租户id")
    private Long tenantId;

    /** 科室id */
    @Excel(name = "科室id")
    private Long deptId;

    /** 处方编号 */
    @Excel(name = "处方编号")
    private String prescriptionNo;

    /** 就诊id */
    @Excel(name = "就诊id")
    private Long consultationId;

    /** 就诊编号 */
    @Excel(name = "就诊编号")
    private String prescriptionCode;

    /** 处方诊断结果 */
    @Excel(name = "处方诊断结果")
    private String prescriptionResult;

    /** 处方类型0普通处方1住院处方 */
    @Excel(name = "处方类型0普通处方1住院处方")
    private Integer prescriptionType;

    /** 床号 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "床号", width = 30, dateFormat = "yyyy-MM-dd")
    private String bedNumber;

    /** 医生id */
    @Excel(name = "医生id")
    private Long doctorId;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    /** 宠物id */
    @Excel(name = "宠物id")
    private Long petId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setPrescriptionNo(String prescriptionNo) 
    {
        this.prescriptionNo = prescriptionNo;
    }

    public String getPrescriptionNo() 
    {
        return prescriptionNo;
    }
    public void setConsultationId(Long consultationId) 
    {
        this.consultationId = consultationId;
    }

    public Long getConsultationId() 
    {
        return consultationId;
    }
    public void setPrescriptionCode(String prescriptionCode) 
    {
        this.prescriptionCode = prescriptionCode;
    }

    public String getPrescriptionCode() 
    {
        return prescriptionCode;
    }
    public void setPrescriptionResult(String prescriptionResult) 
    {
        this.prescriptionResult = prescriptionResult;
    }

    public String getPrescriptionResult() 
    {
        return prescriptionResult;
    }
    public void setPrescriptionType(Integer prescriptionType) 
    {
        this.prescriptionType = prescriptionType;
    }

    public Integer getPrescriptionType() 
    {
        return prescriptionType;
    }
    public void setBedNumber(String bedNumber)
    {
        this.bedNumber = bedNumber;
    }

    public String getBedNumber()
    {
        return bedNumber;
    }
    public void setDoctorId(Long doctorId) 
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId() 
    {
        return doctorId;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }

    public void setPetId(Long petId) 
    {
        this.petId = petId;
    }

    public Long getPetId() 
    {
        return petId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("deptId", getDeptId())
            .append("prescriptionNo", getPrescriptionNo())
            .append("consultationId", getConsultationId())
            .append("prescriptionCode", getPrescriptionCode())
            .append("prescriptionResult", getPrescriptionResult())
            .append("prescriptionType", getPrescriptionType())
            .append("bedNumber", getBedNumber())
            .append("doctorId", getDoctorId())
            .append("customerId", getCustomerId())
            .append("petId", getPetId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
